---
title: Popover
description: Displays rich content in a portal, triggered by a button.
kobalte: https://kobalte.dev/docs/core/components/popover
---

<ComponentPreview name="popover-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<TabsContent value="cli">

```bash
npx solidui-cli@latest add popover
```

</TabsContent>

<TabsContent value="manual">
<Steps>

<Step>Install the following dependencies: </Step>

```bash
pnpm install @kobalte/core
```

<Step>Copy and paste the following code into your project: </Step>

<ComponentSource name="popover" />

</Steps>
</TabsContent>

</Tabs>

## Usage

```tsx
import { Popover, PopoverContent, PopoverTrigger } from "~/components/ui/popover"
```

```tsx
<Popover>
  <PopoverTrigger>Open</PopoverTrigger>
  <PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>
```
